RCSWITCH = ../rcswitch
WIRINGPI = ../wiringPi

CXXFLAGS = -I $(RCSWITCH) -I $(WIRINGPI) -I/usr/include/python2.7 -fPIC -L $(WIRINGPI)

all: _pyrcswitch.so

clean:
	$(RM) *.o _pyrcswitch.so

_pyrcswitch.so: $(RCSWITCH)/RCSwitch.o pyrcswitch.o
	$(CXX) ${CXXFLAGS} -shared $+ -o $@ -lboost_python -lpython2.7 -lwiringPi

